package com.kxf.androidtestdemo.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Adapter;
import android.widget.ListView;

import com.kxf.androidtestdemo.R;
import com.kxf.androidtestdemo.adapter.MyListAdapterHolder;

public class ListViewActivity extends AppCompatActivity {

    private ListView list_view;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_view);

        list_view = findViewById(R.id.list_view);
        list_view.setAdapter(new MyListAdapterHolder());
    }
}
